#!/bin/bash

# Iterates through N
for size in 64 128 256 512 1024 2048
#for size in 1024 2048
do
    # Iterates through the divider that gets block size
    # Block_SIZE = size >> divb
#    for divb in 0
    for divb in 0 1 2 3 4 5 6 7 8 9
    do
    	# Iterates through the MxM implementation (loop ordering)
#        for mode in IJK IKJ JIK JKI KIJ KJI
        for mode in IJKIJ
        do
            make CFLAGS="-DN=$size -DDIVB=$divb -D$mode" matriusAxB.3
            mv matriusAxB.3 MxM.$size.$divb.$mode.3
        done
    done
done
